package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @JDK Version:1.8.0_40
 * Version: V1.0
 * Author: spring
 * Date: 2018/5/2
 */

@RestController
@RequestMapping("/rabbit")
public class RabbitTest {

    @Autowired
    private Sender sender;

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public void hello() {
        sender.send();
    }
}
